class ProperDuck(object):

    def quack(self):
        print "quack (tm)!"


class FooDuck(object):

    def quack(self):
        print "quack foo!"

for duck in (ProperDuck(), FooDuck()):
    duck.quack()
